//
//  certificationViewController.m
//  OfferJob
//
//  Created by 河南动力无限科技有限公司 on 17/7/17.
//  Copyright © 2017年 郑州动力无限科技. All rights reserved.
//

#import "certificationViewController.h"
#import "authenticationViewController.h"
#import "EnterCertifiViewController.h"

@interface certificationViewController ()

@end

@implementation certificationViewController



- (void)viewDidLoad {
    self.title=@"认证";
    [super viewDidLoad];
    NSArray*iconArrry=[NSArray arrayWithObjects:@"icon_gerenguanli",@"icon_qiyeguanli", nil];
    NSArray*arrtTitle=[NSArray arrayWithObjects:@"个人认证",@"企业认证", nil];
    CGFloat Width=180*kAppScale;
    for (int i=0; i<arrtTitle.count; i++) {
        
        UIImageView* imageV=[[UIImageView alloc]initWithFrame:CGRectMake(10*kAppScale,Width*i+30*kAppScale,SCREEN_WIDTH-20*kAppScale, 150*kAppScale)];
        imageV.userInteractionEnabled=YES;
        imageV.image=[UIImage imageNamed:@"icon_kk"];
        [self.view addSubview:imageV];
        
    
        
        UIButton *buttonshow=[[UIButton alloc]initWithFrame:CGRectMake(100*kAppScale,35*kAppScale*i+30*kAppScale, 120*kAppScale, 70*kAppScale)];
        buttonshow .titleLabel.font=[UIFont systemFontOfSize:15*kAppScale];
        [buttonshow setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        [buttonshow setTitle:arrtTitle[i] forState:UIControlStateNormal];
        [buttonshow setTitleColor:maincolor forState:UIControlStateSelected];
        [buttonshow setImage:[UIImage imageNamed:iconArrry[i]]forState:UIControlStateNormal];
        buttonshow.tag=100+i;
        //        [buttonshow setImage:[UIImage imageNamed:@"arrow_2"] forState:UIControlStateSelected];
        [buttonshow TiaoZhengButtonWithOffsit:5 TextImageSite:UIButtonTextBottom];
        [buttonshow addTarget:self action:@selector(shoudata:) forControlEvents:UIControlEventTouchUpInside];
        [imageV addSubview:buttonshow];
        
    }
    
}
//// 获取
//-(void)getUserInfo{
//    FXTHttpRequestModel * requestModel = [[FXTHttpRequestModel alloc] init];
//    requestModel.type = FXTHttpType_GET;
//    requestModel.appendUrl = @"/User/my_auth";
//    NSMutableDictionary * paramDic = [NSMutableDictionary dictionary];
//    [paramDic setValue:tokenn forKey:@"token"];
//    requestModel.paramDic = paramDic;
//    requestModel.callback = ^(FXTHttpResponseModel * result, NSError *error){
//        if (result.state ==FXTReponseCodeState_Success) {
//            NSLog(@"请333333%@",result.data);
//            if ([[result.data  objectForKey:@"user_status"]isEqualToString:@"0"]) {
//                
//            }else if ( [[result.data  objectForKey:@"user_status"]isEqualToString:@"1"] ){
//      
//            }else if ([[result.data  objectForKey:@"user_status"]isEqualToString:@"2"]  ){
//     
//            }else if ( [[result.data  objectForKey:@"user_status"]isEqualToString:@"3"] ){
//             
//            }else {
//                
//            }
//            
//            
//            if ([[result.data  objectForKey:@"seller_status"]isEqualToString:@"0"]) {
//                
//            }else if ( [[result.data  objectForKey:@"seller_status"]isEqualToString:@"1"] ){
//                
//            }else if ([[result.data  objectForKey:@"seller_status"]isEqualToString:@"2"]  ){
//                
//            }else if ( [[result.data  objectForKey:@"seller_status"]isEqualToString:@"3"] ){
//                
//            }else {
//                
//            }
//            
//            
//            
//            
//            
//            
//            
// 
//            
//        }else {
//            [DisplayHelper displayWarningAlert:result.alertMsg];
//        }
//    };
//    [[FXTHttpSessionManager sharedHttpSessionManager] sendHttpRequestParam:requestModel];
//}

- (void)shoudata:(UIButton*)btn{

    if (btn.tag==100) {
        authenticationViewController*companyDetailsVC=[[authenticationViewController alloc]init];
        [self .navigationController pushViewController:companyDetailsVC animated:YES];
    }else{
    
        EnterCertifiViewController*companyDetailsVC=[[EnterCertifiViewController alloc]init];
        [self .navigationController pushViewController:companyDetailsVC animated:YES];
    }




}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
